package com.v2.k4;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.io.Resource;

import java.io.IOException;

/**
 * 测试资源加载
 */
public class Test1 {

	public static void main(String[] args) throws IOException {

		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();

		Resource resource = applicationContext.getResource("classpath:com/v2/k2/Person.class");
		System.out.println(resource.contentLength());

	}

}
